import request from '@/utils/request'

const cacheApi = {
  cleanByKey: '/cache/cleanByKey'
}

/**
 * 清除指定key的redis缓存
 * @param {*} id
 */
export function cleanByKey(key) {
  return request({
    url: cacheApi.cleanByKey,
    method: 'post',
    params: {
      key
    }
  })
}